<?php

session_start();

include 'config.php';

// INCLUDE ALL THE APPLICATION CLASSES
foreach(glob('includes/*.class.php') as $filename){
	include $filename;
}

// INITIALIZE THE DATABASE OBJECT
$db = new MyDB(DB_HOST, DB_USER, DB_PASS, DB_NAME);

// INITIALIZE THE MAIL OBJECT
$mail = new MyMail();

// LOAD THE MODULE
$mod = 'login';
include 'modules/'.$mod.'/index.php';

?>